/**
 * Created by cchen on 2015/4/30.
 */

var userDeviceProfile = new Schema({
    userId: {type: Schema.Types.ObjectId, ref: 'user', unique: true},
    deviceId: String,
    os: String,
    vName: String,
    vCode: Number,
    dateCreated: {type: Date, default: Date.now},
    dateLastModified: {type: Date, default: Date.now}
});
mongoose.model('user_device_profile', userDeviceProfile, 'user_device_profile');

